//
//  UILabel+XKLab.m
//  XKStudyDemo
//
//  Created by xukai on 2017/11/30.
//  Copyright © 2017年 xukai. All rights reserved.
//

#import "UILabel+XKLab.h"

@implementation UILabel (XKLab)

+(UILabel *) makeCommonWithFrame:(CGRect)frame textColor:(UIColor *) textColor bgColor:(UIColor *) bgColor font:(CGFloat) font textAlignment:(NSTextAlignment) textAlignment title:(NSString *) title{
    UILabel *lab = [[UILabel alloc] initWithFrame:frame];
    lab.text = title;
    lab.textColor = textColor;
    lab.backgroundColor = bgColor ? bgColor : [UIColor clearColor];
    lab.font = [UIFont systemFontOfSize:font];//[UIFont fontWithName:DEFAULT_FONT_NAME size:font];;
    lab.textAlignment = textAlignment;
    return lab;
}



@end
